const a = async function (
  params,
  {
    transfer: {
      row: { dtime },
      formSearch,
    },
    me,
    memory,
  },
  { $grid, dc: { http, store }, dayjs, xe: { set, mapTree } }
) {
  const year = dayjs(store.get("user", "date")).format("YYYY");
  const unit = formSearch.local?.unit || 10000;
  mapTree($grid.columns, function (it) {
    const isMoneyField =
      it.formatter && (it.formatter == "money" || it.formatter[0] == "money");
    if (isMoneyField) it.formatter = ["money", unit];
    return it;
  });
  await $grid.reloadColumn($grid.columns);
  const { data, total, dataToTal } = await http.post({
    url: `/nyk/search/listNlsZjzcDataInfo`,
    data: { month: dtime, ctype: 1, year, ...params },
  });
  set(memory, `${me}.dataToTal`, dataToTal);
  return {
    items: data,
    total,
  };
};
